/**
 * @file asset.js
 * @description 资产管理相关的路由配置
 */

import Layout from "../../views/layout.vue";

// 资产管理相关的动态路由配置
export const assetRoutes = [
  {
    path: "/asset",
    component: Layout,
    name: "资产管理",
    alwaysShow: true,
    meta: {
      title: "资产管理",
      icon: "Box",
      permissions: ["admin", "asset"],
      hidden: false
    },
    children: [
      {
        path: "list",
        component: () => import("../../views/asset/list.vue"),
        name: "资产列表",
        meta: {
          title: "资产列表",
          permissions: ["admin", "asset-list"],
          hidden: false
        }
      },
      {
        path: "category",
        component: () => import("../../views/asset/category.vue"),
        name: "资产分类",
        meta: {
          title: "资产分类",
          permissions: ["admin", "asset-category"],
          noCache: true,
          hidden: false
        }
      },
      {
        path: "maintenance",
        component: () => import("../../views/asset/maintenance.vue"),
        name: "资产维护",
        meta: {
          title: "资产维护",
          permissions: ["admin", "asset-maintenance"],
          noCache: true,
          hidden: false
        }
      }
    ]
  }
];